<?php 
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
class Hoso extends MY_Controller {

   public function __construct(){
		parent::__construct();
		if(!$this->session->userdata('userdata'))
			redirect('/dang-nhap');
		$this->load->model('tuyendung_m', 'tuyendung');
   }
	
	function index(){
		show_404();
	}
	
	function datraphi(){
		$data = array();
		$user = $this->session->userdata('userdata');
		$data['hoso']	= $this->tuyendung->get_hoso_datraphi($user['ntd_id']);
		// echo $this->db->last_query();die;
		$data['content'] 	= 'tuyendung/hosodatraphi';
		$this->load->model('help_m', 'help');
		$data['helps'][] 	= array(
			'title'	=>	'FAQs',
			'help'	=>	$this->help->get_helps('tuyen_dung'));
		$this->load->view('tpl/template', $data);
	}
	
	function danop(){
		$data = array();
		$user = $this->session->userdata('userdata');
		$data['hoso']	= $this->tuyendung->get_hoso_danop($user['ntd_id']);
		// echo $this->db->last_query();die;
		$data['content'] 	= 'tuyendung/hosodanop';
		$this->load->model('help_m', 'help');
		$data['helps'][] 	= array(
			'title'	=>	'FAQs',
			'help'	=>	$this->help->get_helps('tuyen_dung'));
		$this->load->view('tpl/template', $data);		
	}
	
	function uathich(){
		$data = array();
		$user = $this->session->userdata('userdata');
		$data['hoso']	= $this->tuyendung->get_hoso_danop($user['ntd_id']);
		// echo $this->db->last_query();die;
		$data['content'] 	= 'tuyendung/hosodanop';
		$this->load->view('tpl/template', $data);
	}
}